package my.bean;

import java.util.Date;

/**
 * database table : teacart 
 * bean : cart 
 * attribute : id,user,tea,count,addDate
 * @author slim
 *
 */
public class Cart {
	private int id;
	private User user;
	private Tea tea;
	private double count;
	private Date addDate;

	public Cart(int id, User user, Tea tea, double count, Date addDate) {
		super();
		this.id = id;
		this.user = user;
		this.tea = tea;
		this.count = count;
		this.addDate = addDate;
	}

	public Cart(User user, Tea tea, double count, Date addDate) {
		super();
		this.user = user;
		this.tea = tea;
		this.count = count;
		this.addDate = addDate;
	}

	public Cart() {
		super();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Tea getTea() {
		return tea;
	}

	public void setTea(Tea tea) {
		this.tea = tea;
	}

	public double getCount() {
		return count;
	}

	public void setCount(double count) {
		this.count = count;
	}

	public Date getAddDate() {
		return addDate;
	}

	public void setAddDate(Date addDate) {
		this.addDate = addDate;
	}

}
